/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Estructuras;

/**
 *
 * @author jose
 */

import java.util.TreeMap;

public class ArbolRN<K,T> extends TreeMap{

    public ArbolRN(){
        super();
    }

    public synchronized void agregar(K clave, T elemento) {
        super.put(clave, elemento);
    }

    public synchronized T obtenerMenor(){
        K clavemenor = (K)this.firstKey();
        return (T)this.get(clavemenor);
    }
}
